﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using UniversalBlazor.Abstract;

namespace UniversalBlazor.ElementUI
{
    public static class ElementBlazorExtension
    {
        public static IServiceCollection AddElement(this IServiceCollection services)
        {
            return services.AddSingleton<IComponentConfig, ComponentConfig>(sp =>  new ComponentConfig(Assembly.GetExecutingAssembly()));
        }
    }
}
